package com.hfzy.ihk.common.core.freeswitch.robot.support;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by Administrator on 2018/9/26.
 *
 * @author wws
 */
public enum EventSubType {

    CUSTOM_SPEAK_RECOG("语音识别内容");

    private String desc;

    public String getDesc() {
        return desc;
    }

    EventSubType(String desc) {
        this.desc = desc;
    }

    private static Map<String,EventSubType> dataMap = new HashMap<>();

    static {

        for(EventSubType ev: EventSubType.values()){
            dataMap.put(ev.name(),ev);
        }
    }

    public static EventSubType fromName(String name){

        return dataMap.get(name);
    }
}
